package miiteen.customsportal.film.dao;

import miiteen.customsportal.film.beans.FilmResource;
import miiteen.data.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Name: CustomsPortal_Film_Info
 * Des: -Dao
 * Author: yulp
 * Date: 2020-07-03
 */
@Repository("filmResourceDao")
public class FilmResourceDao extends BaseDaoImpl<FilmResource> {

    @Override
    protected String getMapper() {
        return "miiteen.customsportal.film.beans.FilmResource";
    }

    public List<FilmResource> getByImgSrc(Map map){
        return getSqlSession().selectList(getMapper() + ".getByImgSrc",map);
    }
    public int deleteNewsInfoId(String id){
        return getSqlSession().delete(getMapper() + ".deleteNewsInfoId",id);
    }
}
